package cn.gene.timeyan.pojo.ums.dto;

import cn.gene.timeyan.common.validation.RegExpressions;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;
import lombok.NonNull;

/**
 * 修改密码*
 *
 * @author LWG
 * @date 2022/7/21 15:19
 * @since 1.0.0@gene.cn
 */
@Data
public class ChangePasswordDTO implements RegExpressions {
    @ApiModelProperty(value="用户id",name="userId",required = true)
    @NonNull()
    private Long userId;

    @ApiModelProperty(value="旧密码",name="oldPassword",required = true)
    @NonNull()
    private String oldPassword;

    @ApiModelProperty(value="新密码",name="newPassword",required = true)
    @NonNull()
    private String newPassword;
}
